package mapper;

import com.javabean.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface DeptMapper {
    List<Dept> selectAll();
    Dept selectById(int i);
    Dept selectByIdAndDname(@Param("id") int id, @Param("dname") String dname);
    Dept selectDept(Dept dept);
    List<Dept> selectByList(ArrayList<Integer> ids);
    List<Dept> selectByArray(int[] ids);
    int insertAll(Dept dept);
    int insertAllDouble(ArrayList<Dept> depts);
    int deleteById(int id);

    int insertAll1(Dept dept);
    int insertAll2(Dept dept);

}
